package team.headnurse.nursemanagement.dao;

import org.apache.ibatis.annotations.Mapper;
import team.headnurse.nursemanagement.model.SchedulingReference;

/**
 * @author Eugene-Forest
 */
@Mapper
public interface SchedulingReferenceDao {

    /**
     * 插入一条排班基准表的记录
     * @param schedulingReference 排班基准对象
     * @return 如果成功则返回数字1
     */
    int insert(SchedulingReference schedulingReference);

    /**
     * 通过id删除一条排班基准记录
     * @param departmentId  科室/部门id
     * @return 如果成功则返回数字1
     */
    int deleteById(String departmentId);

    /**
     * 更新一条排班基准记录
     * @param schedulingReference 排班基准对象
     * @return 如果成功则返回数字1
     */
    int update(SchedulingReference schedulingReference);

    /**
     * 通过id查找一个部门/科室的排班基准记录
     * @param departmentId 科室/部门id
     * @return 如果成功则返回排班基准对象
     */
    SchedulingReference selectById(String departmentId);


}
